#!/bin/sh


if [ $# -ne 1 ]; then 
	echo "usage: $0 cmd"
	exit
fi

workdir=~/workshop/gitee/3place/

cd $workdir

for dir in `find .|grep config  |awk -F/ '{print $2}' |sort -g |sed -e "/\.git/d"`
do

	cd $dir

	source config 

	echo "UPDATing " $bookname "with " $1

	$1

	cd ..
done
